From b05124850ff428bd4a565c10dccc86e158250096 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Fri, 16 Feb 2018 18:36:32 +0000 Subject: [PATCH] nonlinux_utime Gbp-Pq: Name nonlinux_utime.diff --- qmake/library/ioutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmake/library/ioutils.cpp b/qmake/library/ioutils.cpp index 684bcb9a3..a49332013 100644 --- a/qmake/library/ioutils.cpp +++ b/qmake/library/ioutils.cpp @@ -215,7 +215,7 @@ bool IoUtils::touchFile(const QString &targetFileName, const QString &referenceF *errorString = fL1S("Cannot stat() reference file %1: %2.").arg(referenceFileName, fL1S(strerror(errno))); return false; } -# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L +# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L && defined(UTIME_NOW) const struct timespec times[2] = { { 0, UTIME_NOW }, st.st_mtim }; const bool utimeError = utimensat(AT_FDCWD, targetFileName.toLocal8Bit().constData(), times, 0) < 0; # else -- 2.30.2